<template>
  <div>输入框 <el-input v-model="name" @input="update"></el-input></div>
</template>

<script>
export default {
  props: ["name"],
  methods: {
    update(val) {
      this.$emit("update:name", val);
    },
  },
};
</script>

<style></style>
